//
//  LLNWHTTPResponse.h
//  LLFoundation
//
//  Created by my_liu on 2016/11/14.
//  Copyright © 2016年 . All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
    
    LLNWHTTPNetworkNormal = 0,     //数据正常返回
    
    LLNWHTTPNotNetworkState,       //没有网络
    
    LLNWHTTPNetworkTimedOut,       //网络超时
    
    LLNWHTTPNetworkServerError,    //服务器错误
    
    LLNWHTTPNetworkIsCancelled,    //请求被取消
    
} LLNWHTTPSessionState;

@interface LLNWHTTPResponse : NSObject

@property (nonatomic,assign) LLNWHTTPSessionState networkState;   //网络返回状态，默认正常

@property (nonatomic,strong) NSError *error;

@property (nonatomic,strong) NSURLResponse *urlResponse;

@property (nonatomic,strong) id responseData;

@end
